<table class="calender-list-table table-list table" cellspacing=0 >
<?if(is_array($records )){?>
  <tr>
    <th>uid</th>
    <th>用户</th>
    <th>日期</th>
    <th>日程</th>
    <th>
      操作
    </th>
  </tr>
<?foreach ($records as $r ){?>
  <tr>
    <td><?=$r['uid']?></td>
    <td><?=$r['uname']?></td>
    <td><?=$r['date']?></td>
    <td><?=$r['task']?></td>
    <td>
      <a href="/calender/view/<?=$r['id']?>" >查看</a>
      <a href="/calender/edit/<?=$r['id']?>" >编辑</a> 
    </td>
  </tr>
<?  }
}?>
</table>
<?=$pagination?>